package com.feign1.web;

import com.feign1.api.TestApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TEstFeignController {
    @Autowired
    private TestApi testApi;

    @RequestMapping("test00/{user}")
    public String getUsername(@PathVariable("user") String user){
        String yyyy = testApi.yyyy(user);
        return "=======11111==="+yyyy;
    }
}
